<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>160遍历数组</title>
</head>

<body>
  <h1>160遍历数组</h1>
  <script>
    /*
      一、遍历数组
        1 forEach()方法
          返回值：undefined
    */
    let arr = ['lqj', 'lp', 'tjc']
    let result = arr.forEach((el, index, array) => {
      console.log(el, index, array)
    })
    console.log(result)
  </script>
</body>

</html>